﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第三十二题
//BC34 进制A+B
//https://www.nowcoder.com/practice/6187581174ac48278ca3bccf8d534897?tpId=107&tqId=33315&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include<stdio.h>

int main()
{
    int a, b, result;
    scanf("%x %o", &a, &b);
    result = a + b;
    printf("%d", result);
    return 0;
}